/*
 * Project Name spring-boot-tools
 * File Name PlatformException
 * Package Name com.huxiaosu.tools.common.exception
 * Create Time 2024/7/15
 * Create by name：liujie
 */
package com.huxiaosu.tools.common.exception;

/**
 * Description
 *
 * @author liujie
 * @date 2024/7/15 15:48
 */
public class PlatformException extends RuntimeException {
    /**
     * Description：
     * @param expression 条件成立抛出异常
     * @param msg 错误信息
     * @author name：liujie
     **/
    public static void checkCondition(boolean expression, String msg) {
        if (expression) {
            throw new PlatformException(msg);
        }
    }
    public PlatformException(String errorMessage) {
        this(errorMessage, null);
    }
    public PlatformException(String errorMessage, Throwable cause) {
        super(errorMessage, cause);
    }
}